ShutDownItemsFolder Function

Used to access the ShutDownItems folder in the Mac OS "classic' System folder. It returns Nil on other platforms.

Syntax

result = ShutDownItemsFolder




Notes

Use the ShutDownItemsFolder function to access the ShutDownItems folder.

Windows

On Windows, ShutDownItemsFolder returns Nil.

Macintosh

On Mac OS X, ShutDownItemsFolder returns Nil; on Mac OS "classic", it returns a reference to the ShutDownItems folder in the System folder.

Linux

On Linux, ShutDownItemFolder returns Nil.

The SpecialFolder module enables you to access many other special folders that are maintained by the OS.


Examples

This example places in a ListBox all the names of the items in the Shut Down Items folder. It first checks that the user is running Mac OS "classic."

Dim i as Integer
Dim f as FolderItem
#if TargetMacOSClassic  //classic Mac OS
f=ShutDownItemsFolder
for i=1 to f.count
 ListBox1.addrow f.item(i).name
next
#endif

See Also

ApplicationSupportFolder, DesktopFolder, FontsFolder, PreferencesFolder, StartupItemsFolder, SystemFolder, TemporaryFolder, TrashFolder, SpecialFolder functions.